(function(){"use strict";BX.namespace("BX.Landing");BX.Landing.BlockHeaders=function(){this.entries=[];this.observer=new IntersectionObserver(BX.Landing.BlockHeaderEntry.onIntersection,this.getObserverOptions())};BX.Landing.BlockHeaders.prototype={getObserverOptions:function(){return{threshold:[0,1]}},add:function(e){var n=new BX.Landing.BlockHeaderEntry(e);this.entries.push(n);this.observer.observe(n.getNodeForObserve())},getEntryByIntersectionTarget:function(e){var n=null;this.entries.forEach((function(t){if(e===t.getNodeForObserve()){n=t;return true}}));return n},hidePrevEntriess:function(){}};BX.Landing.BlockHeaders.getInstance=function(){return BX.Landing.BlockHeaders.instance||(BX.Landing.BlockHeaders.instance=new BX.Landing.BlockHeaders)};var e=BX.Landing.BlockHeaders.getInstance();var n=BX.Landing.Utils.onCustomEvent;n("BX.Landing.Block:init",(function(n){var t=n.makeRelativeSelector(".u-header");if((BX.Landing.getMode()==="view"||BX.Landing.getMode()==="preview")&&n.block.querySelectorAll(t).length>0){e.add(n.block.querySelector(".u-header"))}}))})();
//# sourceMappingURL=block-header-init.map.js